<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>角色管理/角色</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-role.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/role.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="../operate_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6" onMouseOver="javascript:changeto();" onmouseout="javascript:changeback();">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="8%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>角色名称</td>
            <td width="8%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>角色编码</td>
            <td width="9%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>注册时间</td>
            <td width="9%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>修改时间</td>
            <td width="15%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>描述</td>
            <td width="4%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>状态</td>
            <td width="15%" class="tdClass"><span class="resizeDivClass" onMouseDown=MouseDownToResize(this); onMouseMove=MouseMoveToResize(this); onMouseUp=MouseUpToResize(this);></span>基本操作</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="roleList">
          <% int i = 0; %>
            <logic:iterate id="var" name="roleList">
            <% i++; %>
              <tr>
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.roleID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="roleName" /></td>
                <td class="STYLE12"><bean:write name="var" property="roleCode" /></td>
                <td class="STYLE12"><bean:write name="var" property="roleRegDate" /></td>
                <td class="STYLE12"><bean:write name="var" property="roleModDate" /></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="roleDesc" /></td>
                <c:if test="${var.roleState=='0'}">
                <td class="STYLE12">正常</td>
                <td class="STYLE12"><a href="role.do?method=assignFunction&roleID=${var.roleID}">权限分配</a>&nbsp;启用&nbsp;<a href="role.do?method=stopRole&roleID=${var.roleID}">停用</a></td>
                </c:if>
                <c:if test="${var.roleState=='1'}">
                <td class="STYLE12"><font color="red">停用</font></td>
                <td class="STYLE12"><a href="role.do?method=assignFunction&roleID=${var.roleID}">权限分配</a>&nbsp;<a href="role.do?method=startRole&roleID=${var.roleID}">启用</a>&nbsp;停用</td>
                </c:if>
                <td class="STYLE12">&nbsp;&nbsp;</td>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../no_page.jsp"%>
</table>
</html:form>
</body>
</html>

